package ${package.Service};

import ${package.Other}.${entity}AddDTO;
import ${package.Other}.${entity}UpdateDTO;
import ${package.Other}.${entity}QueryDTO;
import ${package.Parent}.vo.${entity}QueryVO;
import ${package.Parent}.vo.${entity}PageVO;
import com.github.pagehelper.PageInfo;
import java.util.List;

/**
 * ${table.comment!} Service接口
 *
 * @author ${author}
 * @date ${date}
 */
<#if kotlin>
interface ${table.serviceName}
<#else>
public interface ${table.serviceName} {

    /**
    * 新增
    *
    * @param: addDto
    * @return: Object
    * @author ${author}
    * @date ${date}
    */
    Object add(${entity}AddDTO addDto);

    /**
    * 新增
    *
    * @param: ids
    * @return: Object
    * @author ${author}
    * @date ${date}
    */
    Object deletes(List<String> ids);

     /**
     * 修改
     *
     * @param: updateDto
     * @return: Object
     * @author ${author}
     * @date ${date}
     */
     Object edit(${entity}UpdateDTO updateDto);

     /**
     * 分页查询
     *
     * @param: queryDto
     * @return: Object
     * @author ${author}
     * @date ${date}
     */
    PageInfo<${entity}PageVO> page(${entity}QueryDTO queryDto);

     /**
     * 详情
     *
     * @param: id
     * @return: Object
     * @author ${author}
     * @date ${date}
     */
     ${entity}QueryVO detail(String id);

}
</#if>
